import cv2 
cap = cv2.VideoCapture('ikun.mp4')
while(cap.isOpened()):
    ret, frame = cap.read()
    
    x, y = frame.shape[0:2]
    frame=cv2.resize(frame,(int(y / 2), int(x / 2)))
    cv2.imshow("1",frame)
    cv2.waitKey(1)
